#ifndef _DevicesLed_H_
#define _DevicesLed_H_




#define LED_RED             0x01
#define LED_GREEN           0x02
#define LED_YELLOW          0x04
#define LED_BLUE            0x08
#define LED_ALL             0xFFFF




#define LED_BLUE_RCC_GPIO_CLK_ENABLE()      __HAL_RCC_GPIOE_CLK_ENABLE()
#define LED_BLUE_GPIO_Port                  GPIOE
#define LED_BLUE_Pin                        GPIO_PIN_6

#define LED_RED_RCC_GPIO_CLK_ENABLE()       __HAL_RCC_GPIOE_CLK_ENABLE()
#define LED_RED_GPIO_Port                   GPIOE
#define LED_RED_Pin                         GPIO_PIN_7

#define LED_YELLOW_RCC_GPIO_CLK_ENABLE()    __HAL_RCC_GPIOE_CLK_ENABLE()
#define LED_YELLOW_GPIO_Port                GPIOE
#define LED_YELLOW_Pin                      GPIO_PIN_8




void vLedInit(void);
void vLedOpen(uint16_t ucNumber);
void vLedClose(uint16_t ucNumber);
void vLedRevesal(uint16_t ucNumber);


#define LED_OPEN()      vLedOpen(LED_ALL)
#define LED_CLOSE()     vLedClose(LED_ALL)
#define LED_REVESAL()   vLedRevesal(LED_ALL)


#endif
